package com.szx.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.szx.usercenter.domain.UserFileNumber;

import javax.servlet.http.HttpServletRequest;

/**
 * @author yikonsh
 * @description 针对表【user_file_number】的数据库操作Service
 * @createDate 2024-06-04 17:35:24
 */
public interface UserFileNumberService extends IService<UserFileNumber> {

    void initUserFileNumber(Long userId);

    void updateCurrentNumber(Long fileSize, Long userId);

    UserFileNumber getUserFileNumber(HttpServletRequest request);

    boolean updateUserNumber(Long userId, Long newTotalNumber);
}
